//index.js
//获取应用实例
const app = getApp()

Page({
	data: {
		showImg:false,
		licenceImgs:"",
		orgCodeImg:"",
		taxRegisterImg:"",
		defaultImg:"",
	},
	showOrgCode:function(){
		this.setData({
			showImg: true,
			defaultImg:this.data.orgCodeImg
		})
	},
	showLicence:function(){
		this.setData({
			showImg: true,
			defaultImg:this.data.licenceImgs
		})
	},
	showTaxRegister:function(){
		this.setData({
			showImg: true,
			defaultImg:this.data.taxRegisterImg
		})
	},
	hideBig:function(){
		this.setData({
			showImg: false
		})
	},
	onLoad: function() {
		let _this = this;
		wx.getStorage({
		 	key: 'customerInfo',
		  	success: function(res) {
		      	_this.setData({
					licenceImgs: res.data.licenceImgs,
					orgCodeImg: res.data.orgCodeImg,
					taxRegisterImg: res.data.taxRegisterImg
				})
		  	} 
		})
	},
})